package com.gugee.ins.common.dal.service.statistics.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gugee.ins.common.dal.mapper.statistics.InsStBloggerBgsMapper;
import com.gugee.ins.common.dal.service.statistics.InsStBloggerBgsDao;
import com.gugee.ins.common.model.mysql.statistics.InsStBloggerBgs;
import org.springframework.stereotype.Service;

/**
 * <p>
 * ins 带货达人 统计表 服务实现类
 * </p>
 *
 * @author HuangXin
 * @since 2021-04-07
 */
@Service
public class InsStBloggerBgsDaoImpl extends ServiceImpl<InsStBloggerBgsMapper, InsStBloggerBgs> implements InsStBloggerBgsDao {
    /**
     * 插入空数据
     * @param startId
     * @param endId
     */
    @Override
    public void insertEmptyData(long startId, long endId) {
        baseMapper.insertEmptyData(startId,endId,System.currentTimeMillis() / 1000);
    }

    /**
     * 更新近30天数据
     * @param startId
     * @param endId
     * @param limitTimeStart
     * @param limitTimeEnd
     */
    @Override
    public void updateSt(long startId, long endId, long limitTimeStart, long limitTimeEnd) {
        baseMapper.updateSt(startId, endId, limitTimeStart, limitTimeEnd, System.currentTimeMillis() / 1000);
    }
}
